package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.entity.AssociationDocument;
import com.jeff.tianti.common.dao.CommonDao;
import org.springframework.data.jpa.repository.Query;

/**
 * @author NOW_GO
 * @desc AssociationDocumentDao接口 
 * @date 2019-07-19
 */
public interface AssociationDocumentDao extends AssociationDocumentDaoCustom,CommonDao<AssociationDocument,String>{
    @Query(" from AssociationDocument a where sort = (select max(sort) from AssociationDocument)")
    AssociationDocument findMaxSort();
}